<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./echarts.min.js"></script>
</head>
<body>
<div id="main" style="width: 600px;height:400px;"></div>
<script type="text/javascript">
    var myChart = echarts.init(document.getElementById('main'));
    var app = {};
    let option;

    option = {
        tooltip: {
            trigger: 'axis',
            axisPointer: {type: 'cross'}
        },
        legend: {},
        xAxis: {
            type: 'category',
            axisTick: {
                alignWithLabel: true
            },
            data: ['A', 'B', 'C', 'D', 'E']
        },
        yAxis: {
            type: 'value',
            name: '测试',
            min: 0,
            max: 100,
            position: 'left',
            axisLabel: {
                formatter: '{value} ml'
            }
        },
        series: [
            {
                name: '哈哈哈',
                type: 'line',
                smooth: true,
                data: [10, 22, 28, 43, 49],
                stack: 'x',
                areaStyle: {}
            },
            {
                name: '呵呵呵',
                data: [5, 4, 3, 5, 10],
                type: 'line',
                stack: 'x',
                areaStyle: {}

            }
        ]
    };

    option && myChart.setOption(option);

</script>
</body>
</html>
